package structure.bridge;

/**
 * 桥接模式, 抽象化与实现化解耦，使得二者可以独立变化
 */
public class BridgePatternDemo {
	public static void main(String[] args) {
		Shape shape1 = new Circle(new GreenCircle(), 1, 1, 1);
		Shape shape2 = new Circle(new RedCircle(), 1, 2, 1);
		shape1.draw();
		shape2.draw();
	}
}
